package com.sql.common.util;

import com.sql.common.intc.ParseUtilConvert;

import java.util.Date;

public class ParseUtilConvertors{

    /**
     * sqltime转java.util.Date
     */
    public final static ParseUtilConvert sqlTimeToDate = new ParseUtilConvert(){
        @Override
        public Object convert(Class<?> clazz, Object value) {
            if(value != null && clazz == Date.class && value.getClass()==Long.class){
                return new Date((Long)value);
            }
            return null;
        }
    };

}
